package indi.jp.project.core.dao;

import java.sql.SQLException;
import java.util.List;

public interface BaseDao<T> {

    List<T> queryList(String mapper, Object parameter) throws SQLException;

    int queryCount(String mapper, Object parameter) throws SQLException;

    int insert(String mapper, Object parameter) throws SQLException;

    int batchInsert(String mapper, Object parameter) throws SQLException;

    int update(String mapper, Object parameter) throws SQLException;

    int delete(String mapper, Object parameter) throws SQLException;

    T findById(String mapper, String id) throws SQLException;

    int deleteById(String mapper, String id) throws SQLException;

    T findByObject(String mapper, Object parameter) throws SQLException;
}
